class CreateRoomtypes < ActiveRecord::Migration
  def self.up
    create_table :roomtypes do |t|
      t.string :name
      t.integer :num_beds
      t.boolean :has_tv
      t.boolean :has_refrigerator
      t.boolean :has_aircon
      t.boolean :has_fan
      t.boolean :has_bathroom
      t.boolean :has_bathtube
      t.boolean :has_hotwater

      t.timestamps
    end
  end

  def self.down
    drop_table :roomtypes
  end
end
